<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<!-- 开发环境版本，包含了有帮助的命令行警告 -->
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
		<title>事件处理</title>
		<!-- https://v2.cn.vuejs.org/v2/guide/#Vue-js-%E6%98%AF%E4%BB%80%E4%B9%88(官网链接) -->
	</head>
	<body>
		<div id="example-1">
			
		<button type="button" v-on:click="greet">Greet</button>	
			
		</div>
		<script>
			var app = new Vue({
				el: '#example-1',
				data: {
					Message: "你点了我"

				},
				
				
				methods:{
					
					greet:function(){
						
						alert(this.Message)
						
					}
					
				}
			})
		</script>
	</body>
</html>